import axios from 'axios'
axios.defaults.headers.common['authorization'] = "Bearer "+localStorage.getItem('token')
export function addProducts(p) {
  return axios.post('http://api.cat-shop.penkuoer.com/api/v1/shop_carts', p);
}

export function getProducts() {
  return axios.get('http://api.cat-shop.penkuoer.com/api/v1/shop_carts');
}

export function delProducts(id) {
  return axios.delete('http://api.cat-shop.penkuoer.com/api/v1/shop_carts/'+id);
}
